<!DOCTYPE html>
<html lang="zh-CN">
<head>
<title>Login Page</title>
<%@include file="/common/head.jsp"%>
</head>
  <body class="login-body">
	<div class="login-wrap">
    	<div class="login-logo"><span class="logoF f35">TCLOGO</span></div>
        <form id="myForm2" action="login.htm" method="post">
        	<ul>
            	<li><input type="text" name="name_email_studentid" placeholder="Name/Email/StudentId"></li>
                <li><input type="password" name="password" placeholder="Password"></li>
                <li><button id="loginButton">Login</button></li>
                <li class="text"><a href="register_1.htm">Click here to create an account</a></li>
            </ul>
        </form>
    </div>


    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="<%=request.getContextPath()%>/common/js/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="<%=request.getContextPath()%>/common/js/bootstrap.min.js"></script>
	
	<script>
		$(document).ready(function(){
			var msg = '${msg}';
			if(msg != '')
				alert(msg);
		})
		
		$("#loginButton").on("click",function(){
			document.getElementById('myForm2').submit();
		})
	</script>

  </body>
</html>